<?php
$id = $_GET['id'];
if($id)
{
$news = mysql_fetch_array(safe_query("SELECT * FROM news WHERE newsID=1"));

echo '<b>'.$news['title'].'</b>';
echo '<hr>';
echo $news['content'];
echo '<hr>';

include("comments.php");


}
else //List all
{
$news = safe_query("SELECT * FROM news");
echo '<ul>';
while($ds = mysql_fetch_array($news))
{
echo '<li><a href="?p=news&id='.$ds['newsID'].'">'.$ds['title'].'</a></li><hr>';
}
echo '</ul>';
}


?>